﻿using WD.Db.Contract;
using WD.Core.Cache;
using WD.Core.Service;

namespace WD.Web
{
    public partial class ServiceContext
    {
        public static ServiceContext Current
        {
            get
            {
                return CacheHelper.GetItem<ServiceContext>("ServiceContext", () => new ServiceContext());
            }
        }

        public IShop_LoginInfoService Shop_LoginInfoService
        {
            get
            {
                return ServiceHelper.CreateService<IShop_LoginInfoService>();
            }
        }
        //        public IAuditLogService AuditLogService
        //        {
        //            get
        //            {
        //                return ServiceHelper.CreateService<IAuditLogService>();
        //            }
        //        }
        //
        //
        //        public IYwb_LoginInfoService Ywb_LoginInfoService
        //        {
        //            get
        //            {
        //                return ServiceHelper.CreateService<IYwb_LoginInfoService>();
        //            }
        //        }

    }
}
